<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新加操作员账号</title>
{% include file="header.inc.html" %}
<script language="javascript">
 
$(document).ready(function(){ 
	$("#faqAddForm").submit(function(){
		if($("#question").val() == "") {
		alert("问题不能为空！");
		return false;
		}
		if($("#reply").val() == ""){
			alert("回答不能为空！");
			return false;
		}
		if($("#fiType").val() == ""){
			alert("分类不能为空！");
			return false;
		}
	});
});

</script>
</head>

<body>
<form name="form1" id="faqAddForm" method="post" action="">
<table border="0" cellpadding="1" cellspacing="1" class="tableStyle">
  
    <tr  class="tableHeader">
      <td colspan="2">&nbsp;新加FAQ</td>
    </tr>
    <tr class="tableBody">
      <td width="107"><p>&nbsp; 问题 </p></td>
      <td>&nbsp;
        <textarea name="question" cols="40" rows="3" class="text_c_05" id="question">{% $question %}</textarea></td>
    </tr>
    <tr class="tableBody">
      <td bgcolor="#FFFFFF"><p>&nbsp; 回答 </p></td>
      <td >&nbsp;
          <textarea name="reply" cols="40" rows="5" class="text_c_05" id="reply">{% $reply %}</textarea></td>
    </tr>
	<tr class="tableBody">
		<td><p>&nbsp; 分类</p></td>
		<td>&nbsp;
		<select name="fiType" id="fiType">
			<option value="">请选择分类</option>
			{% $fitypeOption %}
		  </select>
		</td>
	</tr>
    <tr class="tableBody">
      <td bgcolor="#FFFFFF"><p><strong></strong></p></td>
      <td >&nbsp;
          <input type="hidden" name="act" value="add">
          <input type="submit" name="Submit" value="提交">
 		 &nbsp;
          <input type="reset" name="Submit2" value="重设">
      </td>
    </tr>
	{% if $errmsg != "" %}
	<tr class="tableBody">
		<td colspan="2">
		 <span class="errorStyle">{% $errmsg %}</span>
		</td>
	</tr>
	{% /if %}
 
</table>
 </form>
</body>
</html>
